home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / estat21.zip / GRAFDEMO.BAT < prev    next >
DOS Batch File  |  1992-07-22  |  9KB  |  270 lines

  1. @echo off
  2. echo Note: this demonstration of EASIGRAF will run more quickly from 
  3. echo a hard disk than a floppy disk. We recommend that before running the 
  4. echo demonstration you copy all the files supplied into a subdirectory
  5. echo of your hard disk and then run the demonstration from there. If you 
  6. echo wish to do this then break out of this batch file now by pressing
  7. echo control-C...
  8. pause
  9. cls
  10. echo.
  11. echo.
  12. echo.
  13.         rem GRAFDEMO.BAT
  14. echo.        
  15. echo.        
  16. echo                              EASIGRAF demonstration
  17. echo.        
  18. echo         This is just a short demonstration which shows you some of the 
  19. echo         graphs that EASIGRAF can produce. For it to run properly you 
  20. echo         must be logged on to the disk containing the graph files (which 
  21. echo         are all called something.GRP) and the file called EASIGRAF.EXE 
  22. echo         must also be present. 
  23. echo.        
  24. echo         All the graph files were produced using EASISTAT, but please 
  25. echo         note that this demonstration is not run from EASISTAT, but as an 
  26. echo         ordinary DOS batch file. There is another demonstration on the 
  27. echo         disk which is run from EASISTAT, called GDEMO (from which the 
  28. echo         data for this demonstration was produced). To run that one first 
  29. echo         run EASISTAT and read in the example data file by entering DATA 
  30. echo         EXAMPLE.DAT, then put this disk in the drive and type INPUT 
  31. echo         GDEMO. To run this current demonstration you should have quit 
  32. echo         EASISTAT and then you just type GRAFDEMO. 
  33. echo.        
  34.         pause
  35. echo.       
  36. echo         EASIGRAF and EASISTAT are Shareware programs. If you find 
  37. echo         them useful then please become a registered user by 
  38. echo         writing to:
  39. echo.       
  40. echo           ARC Scientific Limited,
  41. echo           257 Woodstock Road,
  42. echo           Oxford OX2 7AE.
  43. echo.       
  44. echo           Tel. 0865 310167 
  45. echo.       
  46. echo         You will receive up-to-date versions of the programs and a 
  47. echo         full printed manual.
  48. echo.        
  49. echo         For further information about how to use EASIGRAF please
  50. echo         consult the printed manual or, if you do not have one, 
  51. echo         the on-disk documentation.
  52.         pause 
  53. echo.
  54. echo         There is one problem which may occur that is difficult to 
  55. echo         predict, which is that EASIGRAF may fail to correctly recognise 
  56. echo         your monitor. If this occurs you will have to set a DOS 
  57. echo         environment variable called FG_DISPLAY. Full instructions for 
  58. echo         doing this are in the documentaion. If EASIGRAF fails to display 
  59. echo         a graph and just gives a blank screen or one with 
  60. echo         "interference" you will need to do this. It may be possible to 
  61. echo         quit EASIGRAF by pressing Q, otherwise reboot the computer. 
  62. echo         Briefly, try entering one of the following lines (at the DOS 
  63. echo         prompt) before trying to run this demonstration again: 
  64. echo.        
  65. echo         SET FG_DISPLAY=CGAHIRES
  66. echo         SET FG_DISPLAY=EGAHIRES
  67. echo         SET FG_DISPLAY=HERC
  68. echo         SET FG_DISPLAY=VGA11
  69. echo.        
  70. echo         depending on whether you have a CGA, EGA, Hercules or VGA 
  71. echo         monitor.
  72. echo.        
  73. pause
  74. echo.
  75. echo         Now we'll start the demonstration.
  76. echo.        
  77. echo         We'll start by showing the frequency distribution of HDA scores 
  78. echo         in a population. These are contained in a graph file called 
  79. echo         HDA.GRP. This batch file will run EASIGRAF to display the graph. 
  80. echo         The only thing you really need to know is how to quit EASIGRAF, 
  81. echo         which you do by pressing 'Q' when the graph is displayed. Then 
  82. echo         you will return to this demonstration. Information about the 
  83. echo         options available in EASIGRAF are described in the manual
  84. echo         and on-disk documentation.
  85. echo.        
  86. echo         You may wish to hide the menu displayed at the bottom of 
  87. echo         screen so that you can see the graph properly. To do this 
  88. echo         press 'M' and to get it back press 'M' again.
  89. echo.        
  90. echo         Press a key when you are ready to run EASIGRAF and view the 
  91. echo         graph. 
  92. echo.
  93.         pause
  94.         echo on
  95.         easigraf hda.grp
  96.         echo off
  97. cls
  98. echo.
  99. echo.
  100. echo.
  101. echo.        
  102. echo         Well, you got back here OK. If EASIGRAF didn't work 
  103. echo         properly then you may need to set FG_DISPLAY and you
  104. echo         should consult the documentation before continuing
  105. echo         with this demonstation. If EASIGRAF said that it could not open
  106. echo         HDA.GRP then you may be logged on to the wrong disk. You should 
  107. echo         quit the demonstration, make sure the correct disk is in
  108. echo         drive A: and then type 
  109. echo.
  110. echo         A:
  111. echo         GRAFDEMO
  112. echo.
  113. echo         on different lines.
  114. echo.
  115. echo         If you wish to leave the demonstration press Control-C (then 
  116. echo         'Y'). 
  117. echo.        
  118.         pause
  119. echo.        
  120. echo         Still here? Good.
  121. echo.        
  122. echo         Now let's see a breakdown of GHQ scores (more emotional
  123. echo         distress) by social class. This information was derived from the 
  124. echo         ANOVA function of EASISTAT and is in the file called ANOVA.GRP.
  125. echo.
  126. echo         To see the means of each group when the graph is showing press 
  127. echo         'R', then '3' then ENTER. 
  128. echo.        
  129.         pause
  130.         echo on
  131.         easigraf regress.grp
  132.         echo off
  133. cls
  134. echo.
  135. echo.
  136. echo.
  137. echo.        
  138. echo         Next is a histogram of GHQ cases and non-cases (scores less
  139. echo         than 12) against social class. It's in HISTO.GRP.
  140. echo.        
  141. echo         Press a key to view the graph. When it is showing 'X' will 
  142. echo         swap over the groupings and '3' will make the blocks solid.
  143. echo.        
  144.         pause
  145.         echo on
  146.         easigraf histo.grp 
  147.         echo off
  148. cls
  149. echo.
  150. echo.
  151. echo.
  152. echo.                     
  153. echo         Now let's try plotting HDA against GHQ. The data is in 
  154. echo         REGRESS.GRP.
  155. echo.
  156. echo         To view the regression line when the graph is showing press
  157. echo         'R', then '1' then ENTER. 
  158. echo.        
  159.         pause
  160.         echo on
  161.         easigraf regress.grp
  162.         echo off
  163. cls
  164. echo.
  165. echo.
  166. echo.
  167. echo.        
  168. echo         To finish the demonstration we'll give examples of how EASIGRAF 
  169. echo         can produce graphs of mathematical functions. Press a key to see 
  170. echo         the graphs. 
  171. echo.        
  172.         pause
  173.         echo on
  174.         easigraf trigs.grp
  175.         echo off
  176. cls
  177. echo.
  178. echo.
  179. echo.
  180. echo.        
  181. echo         We'll try for a pseudo-3D one now. It's called the frilly 
  182. echo         circle. To see the third dimension press '3' when the graph is 
  183. echo         showing. 
  184. echo.        
  185.         pause
  186.         echo on
  187.         easigraf frilly.grp
  188.         echo off
  189. cls
  190. echo.
  191. echo.
  192. echo.
  193. echo.        
  194. echo         The equation for that curve was:
  195. echo           X=SIN(theta)  Y=SIN(8*theta)  and  Z=COS(theta)
  196. echo.        
  197. echo.        
  198. echo         We can plot nearly the same data in a different way. 
  199. echo.        
  200. echo         Once again press '3' to view the third dimension.
  201. echo.        
  202.         pause
  203.         echo on
  204.         easigraf wave.grp
  205.         echo off
  206. cls
  207. echo.
  208. echo.
  209. echo.
  210. echo.         
  211. echo         That was:
  212. echo          X=COS(theta)  Y=SIN(8*theta)  Z=theta
  213. echo.        
  214. echo         Like EASISTAT, it is possible to control EASIGRAF from a 
  215. echo         command file. To demonstrate this we'll first create a file 
  216. echo         called TEMP.JF:
  217.  
  218.  echo mk1 > temp.jf
  219.  echo t67 >> temp.jf
  220.  echo Here's a floating title >>temp.jf
  221.  echo 0.1,0.1,0 >>temp.jf
  222.  echo _ >>temp.jf
  223.  echo _ _ >>temp.jf
  224.  echo t67 >> temp.jf
  225.  echo _ >>temp.jf
  226.  echo _ >>temp.jf
  227.  echo Here's one going up >>temp.jf
  228.  echo 0.8,0.2,90 >>temp.jf
  229.  echo _ >>temp.jf
  230.  echo _ _ >>temp.jf
  231.  echo t67 >> temp.jf
  232.  echo _ >>temp.jf
  233.  echo _ >>temp.jf
  234.  echo _ >>temp.jf
  235.  echo _ >>temp.jf
  236.  echo Press Q to quit EASIGRAF >>temp.jf
  237.  echo 0.2,0.3,0 >>temp.jf
  238.  echo _ >>temp.jf
  239.  echo _ _ >>temp.jf
  240.  
  241. echo.
  242. echo         TEMP.JF has been created on disk. Now when we run EASIGRAF 
  243. echo         you should see extra titles being added automatically by 
  244. echo         this command file.
  245. echo.
  246. echo         Press '3' to see a helix.
  247. echo.        
  248.         pause 
  249.         echo on
  250.         easigraf spring.grp temp.jf
  251.         echo off
  252. cls
  253. echo.
  254. echo.
  255. echo.
  256. echo.        
  257. echo         OK that's all for now.
  258. echo.        
  259. echo         Please read the manual or on-disk documentation to learn more 
  260. echo         about EASIGRAF. If you like it then please become a 
  261. echo         registered user.
  262. echo.        
  263. echo         ARC Scientific Limited,
  264. echo         257 Woodstock Road,
  265. echo         Oxford OX2 7AE.
  266. echo.
  267. echo.
  268. echo.       
  269.  
  270.